package com.yiwei.hdb.adapter;

import android.content.Context;
import android.support.v7.widget.RecyclerView;
import android.view.View;
import android.view.ViewGroup;

import com.yiwei.hdb.R;
import com.yiwei.hdb.adapter.base.ItemAdapter;
import com.yiwei.hdb.model.V3HomeIndexModel;

import butterknife.ButterKnife;


/**
 * Created by xsooy-pc on 2017/10/23.
 */

public class HomeBottomOneAdapter extends ItemAdapter<V3HomeIndexModel.DataBean.DealUserListBean, HomeBottomOneAdapter.DefaultHolder> {
    private final int x30;
    private final int x24;
    private Context context;
    public HomeBottomOneAdapter(Context context) {
        super(context);
        this.context=context;
        x30=context.getResources().getDimensionPixelSize(R.dimen.x30);
        x24=context.getResources().getDimensionPixelSize(R.dimen.x24);
    }

    @Override
    public DefaultHolder onCreateViewHolder(ViewGroup parent, int viewType) {
        return new DefaultHolder(inflate(R.layout.item_v3_home_bottom_one, parent));
    }

    @Override
    public void onBindViewHolder(DefaultHolder holder, int position) {
        V3HomeIndexModel.DataBean.DealUserListBean item = getItem(position);

    }

    class DefaultHolder extends RecyclerView.ViewHolder {

        public DefaultHolder(View itemView) {
            super(itemView);
            ButterKnife.bind(this, itemView);
        }
    }
}
